package com.wisdom.core.provider;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


public class ServiceProvider implements Serializable {

    private String serviceName;

    private String serverIp;

    private int serverPort;

    private double weight;

    private String clusterNames;

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public int getServerPort() {
        return serverPort;
    }

    public void setServerPort(int serverPort) {
        this.serverPort = serverPort;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getClusterNames() {
        return clusterNames;
    }

    public void setClusterNames(String clusterNames) {
        this.clusterNames = clusterNames;
    }

    @Override
    public String toString() {
        return "ServiceProvider{" +
                "serviceName='" + serviceName + '\'' +
                ", serverIp='" + serverIp + '\'' +
                ", serverPort=" + serverPort +
                ", weight=" + weight +
                ", clusterNames='" + clusterNames + '\'' +
                '}';
    }
}
